from rest_framework.serializers import ModelSerializer
from .models import Category,Goods,Carousel,GoodImg,GoodsCollect
class CarouselSer(ModelSerializer):
    class Meta:
        model = Carousel
        fields = '__all__'

class GoodsSer(ModelSerializer):
    class Meta:
        model = Goods
        fields = '__all__'

class CategorySer(ModelSerializer):
    class Meta:
        model = Category
        fields = '__all__'

class GoodImgSer(ModelSerializer):
    class Meta:
        model = GoodImg
        fields = '__all__'

class GoodsCollectSer(ModelSerializer):
    class Meta:
        model = GoodsCollect
        fields = '__all__'